package service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import dao.RegisterDao;
import entity.register;
@Service
public class RegisterService {
	@Autowired
	private RegisterDao fd;
	public List<register> getAll(){
		return fd.getAll();
	}
	public boolean add(register f){
		return fd.add(f)>0?true:false;
	}
	public register find(register f){
		register fx=fd.find(f);
		return fx;
	}
	public boolean delete(Integer id){
		return fd.delete(id)>0?true:false;
	}
}	
